#include <opencv2/opencv.hpp>
#include <iostream>
#include <windows.h>
#include <string>
#include <fstream>
#include "PatternOffset.h"





int main(int argc, char* args[]) {

	if (argc == 2) {
		std::string imgPath = args[1];
		cv::Mat image = cv::imread(imgPath, cv::IMREAD_ANYCOLOR | cv::IMREAD_ANYDEPTH);
		cv::Point2f offset(0.0, 0.0);
		bool useOffsetFlag = false;
		PatternCalc::calOffsetPattern(image, offset, useOffsetFlag);
		std::cout << "offset: " << "( " << offset.x << "," << offset.y << " )" << std::endl;
		std::cout << "useOffsetFlag: " << useOffsetFlag << std::endl;

	}
	return 0;
}




